Optimal. Leaf size=47 \[ \frac{a x \sqrt{c+\frac{d}{x^2}}}{c}-\frac{b \tanh ^{-1}\left (\frac{\sqrt{d}}{x \sqrt{c+\frac{d}{x^2}}}\right )}{\sqrt{d}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0292151, antiderivative size = 47, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.21, Rules used = {375, 451, 217, 206} \[ \frac{a x \sqrt{c+\frac{d}{x^2}}}{c}-\frac{b \tanh ^{-1}\left (\frac{\sqrt{d}}{x \sqrt{c+\frac{d}{x^2}}}\right )}{\sqrt{d}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 375
Rule 451
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{a+\frac{b}{x^2}}{\sqrt{c+\frac{d}{x^2}}} \, dx &=-\operatorname{Subst}\left (\int \frac{a+b x^2}{x^2 \sqrt{c+d x^2}} \, dx,x,\frac{1}{x}\right )\\ &=\frac{a \sqrt{c+\frac{d}{x^2}} x}{c}-b \operatorname{Subst}\left (\int \frac{1}{\sqrt{c+d x^2}} \, dx,x,\frac{1}{x}\right )\\ &=\frac{a \sqrt{c+\frac{d}{x^2}} x}{c}-b \operatorname{Subst}\left (\int \frac{1}{1-d x^2} \, dx,x,\frac{1}{\sqrt{c+\frac{d}{x^2}} x}\right )\\ &=\frac{a \sqrt{c+\frac{d}{x^2}} x}{c}-\frac{b \tanh ^{-1}\left (\frac{\sqrt{d}}{\sqrt{c+\frac{d}{x^2}} x}\right )}{\sqrt{d}}\\ \end{align*}
Mathematica [A] time = 0.0310319, size = 71, normalized size = 1.51 \[ \frac{a \sqrt{d} \left (c x^2+d\right )-b c \sqrt{c x^2+d} \tanh ^{-1}\left (\frac{\sqrt{c x^2+d}}{\sqrt{d}}\right )}{c \sqrt{d} x \sqrt{c+\frac{d}{x^2}}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.01, size = 73, normalized size = 1.6 \begin{align*}{\frac{1}{cx}\sqrt{c{x}^{2}+d} \left ( a\sqrt{c{x}^{2}+d}\sqrt{d}-b\ln \left ( 2\,{\frac{\sqrt{d}\sqrt{c{x}^{2}+d}+d}{x}} \right ) c \right ){\frac{1}{\sqrt{{\frac{c{x}^{2}+d}{{x}^{2}}}}}}{\frac{1}{\sqrt{d}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.37344, size = 305, normalized size = 6.49 \begin{align*} \left [\frac{2 \, a d x \sqrt{\frac{c x^{2} + d}{x^{2}}} + b c \sqrt{d} \log \left (-\frac{c x^{2} - 2 \, \sqrt{d} x \sqrt{\frac{c x^{2} + d}{x^{2}}} + 2 \, d}{x^{2}}\right )}{2 \, c d}, \frac{a d x \sqrt{\frac{c x^{2} + d}{x^{2}}} + b c \sqrt{-d} \arctan \left (\frac{\sqrt{-d} x \sqrt{\frac{c x^{2} + d}{x^{2}}}}{c x^{2} + d}\right )}{c d}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.611, size = 39, normalized size = 0.83 \begin{align*} \frac{a \sqrt{d} \sqrt{\frac{c x^{2}}{d} + 1}}{c} - \frac{b \operatorname{asinh}{\left (\frac{\sqrt{d}}{\sqrt{c} x} \right )}}{\sqrt{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{a + \frac{b}{x^{2}}}{\sqrt{c + \frac{d}{x^{2}}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]